<template>
  <div class="dorm-wrapper flex-row-bet">
    <div class="flex-row">
      <div class="warn">
  <!--      <el-iamge :src="logPath" style="width: 30px;"></el-iamge>-->
        <el-image :src="logPath" style="width: 60px;"></el-image>
      </div>
      <div class="flex-col-bet padding">
        <div class="dorm">{{ info.dorm }}</div>
        <div class="history-fee">过去24小时电费: {{ info.historyFee }}</div>
      </div>
    </div>

    <div>
      {{ info.score }}
    </div>
  </div>
</template>

<script>
export default {
  name: "abnormal-dorm",
  props: {
    info: Object
  },
  data() {
    return {
      // iconPath: require('@/assets/ab-icon.png')
      logPath: require('@/assets/abnormal.png')
    }
  }
};
</script>

<style scoped>
.dorm {
  font-weight: 500;
  font-size: 17px;
  line-height: 21px;
}

.history-fee {
  color: #cbcbcb;
  font-size: 13px;
}

.dorm-wrapper {
  margin: 10px 0;
}

.padding {
  padding: 10px 10px;
}

.warn {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #dc0000;
  border-radius: 50%;
}
</style>